﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Microsoft.Practices.Unity;
using Microsoft.Practices.Unity.Configuration;

namespace CimeaSoft.UI
{
    public static class FormBuildUp
    {
        public static void BuilUp(this Form frm)
        {
            using (var container = new UnityContainer())
            {
                container.LoadConfiguration();
                container.BuildUp(frm.GetType(), frm);
            }
        }
    }
}
